package com.jiang.vo;

import java.io.Serializable;
import java.util.Date;
public class Emp implements Serializable {

	private static final long serialVersionUID = -5203414535794712808L;

	private Integer empno;
	private String ename;
	private Date hiredate;
	private Double sal;
	private Dept dept ;
	public Emp(){
		
	}
	
	public Emp(Integer empno, String ename, Date hiredate, Double sal, Dept dept) {
		super();
		this.empno = empno;
		this.ename = ename;
		this.hiredate = hiredate;
		this.sal = sal;
		this.dept = dept;
	}

	public Integer getEmpno() {
		return empno;
	}

	public void setEmpno(Integer empno) {
		this.empno = empno;
	}

	public String getEname() {
		return ename;
	}

	public void setEname(String ename) {
		this.ename = ename;
	}

	public Date getHiredate() {
		return hiredate;
	}

	public void setHiredate(Date hiredate) {
		this.hiredate = hiredate;
	}


	public Dept getDept() {
		return dept;
	}

	public void setDept(Dept dept) {
		this.dept = dept;
	}

	@Override
	public String toString() {
		return "Emp [empno=" + empno + ", ename=" + ename + ", hiredate=" + hiredate + ", sal=" + sal + ", dept=" + dept
				+ "]";
	}

	public Double getSal() {
		return sal;
	}

	public void setSal(Double sal) {
		this.sal = sal;
	}
	
	
}
